package com.zhy.generator.codegen.dom;
import com.zhy.generator.codegen.api.JavaFormatter;
import com.zhy.generator.codegen.dom.java.CompilationUnit;

/**
 * This class is the default formatter for generated Java.  This class will use the
 * built in formatting of the DOM classes directly.
 *
 * @author Jeff Butler
 *
 */
public class DefaultJavaFormatter implements JavaFormatter {

    @Override
    public String getFormattedContent(CompilationUnit compilationUnit) {
        return compilationUnit.getFormattedContent();
    }
}
